package com.dpiinc.TechPage.pen.adapter;


import com.dpiinc.TechPage.R;
import com.beiji.lib.pen.model.PenInfo;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

/**
 * @author ljm
 * @date 2020/12/12.
 */
public class SearchListAdapter extends BaseQuickAdapter<PenInfo, BaseViewHolder> {
    public SearchListAdapter() {
        super(R.layout.fragment_pen);
    }

    @Override
    protected void convert(BaseViewHolder helper, PenInfo item) {
        helper.setText(R.id.tv_name,item.getName());
        helper.setText(R.id.tv_address,item.getMacAddress());
        helper.addOnClickListener(R.id.ll_root);
    }
}
